package com.example.back.jpa;

import java.util.List;

import com.example.common.entity.RxInfo;

import org.springframework.data.jpa.repository.JpaRepository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.javers.spring.annotation.JaversSpringDataAuditable;

@JaversSpringDataAuditable
public interface RxInfoRepository extends JpaRepository<RxInfo, String> {
    
    @Query(value = "select * from order_rx_info where drug_type_nvarchar = '1' and rx_order_no_nvarchar = ?1",nativeQuery = true)
    RxInfo GetzdList(String rxorderno);

    @Query(value = "select * from order_rx_info where drug_type_nvarchar = '1' and rx_order_no_nvarchar in (:RxOrderNOs)",nativeQuery = true)
    List<RxInfo> RxInfoList(@Param("RxOrderNOs") List<String> RxOrderNOs);
}
